const {net} = require('electron')
async function CreateHttpRequest (query){
    const response  = await net.fetch('http://43.143.194.123/api/miaozhimini/'+query);
    let result = '';
    if (response.ok) {
        result = await response.json()
    }
    return JSON.stringify(result);
}
module.exports = CreateHttpRequest;